package com.ytjj.qmyx.admin.mapper;

import com.ytjj.qmyx.admin.model.OrderDisparitiesRefund;
import com.ytjj.qmyx.admin.model.OrderDisparitiesRefundExample;
import java.util.List;

import com.ytjj.qmyx.admin.model.request.OrderDispatiesRefundListRequest;
import com.ytjj.qmyx.admin.model.response.OrderDisparitiesRefundResponse;
import org.apache.ibatis.annotations.Param;

public interface OrderDisparitiesRefundMapper {
    long countByExample(OrderDisparitiesRefundExample example);

    int deleteByExample(OrderDisparitiesRefundExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OrderDisparitiesRefund record);

    int insertSelective(OrderDisparitiesRefund record);

    List<OrderDisparitiesRefund> selectByExample(OrderDisparitiesRefundExample example);

    OrderDisparitiesRefund selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OrderDisparitiesRefund record, @Param("example") OrderDisparitiesRefundExample example);

    int updateByExample(@Param("record") OrderDisparitiesRefund record, @Param("example") OrderDisparitiesRefundExample example);

    int updateByPrimaryKeySelective(OrderDisparitiesRefund record);

    int updateByPrimaryKey(OrderDisparitiesRefund record);

    /**
     * 根据订单号查询退款成功补差价记录
     */
    List<OrderDisparitiesRefund> querySuccessByOrderNo(@Param("orderNo")String orderNo);

    /**
     * 根据订单号查询退款成功补差价记录
     */
    List<OrderDisparitiesRefund> querySuccessByOrderNos(@Param("orderNos")List<String> orderNos);

    List<OrderDisparitiesRefundResponse> queryByParam(OrderDispatiesRefundListRequest request);
}